﻿namespace Pisces
{
    public class PacketHeaderDefine
    {
        /// <summary>
        /// tcp的protobuf协议的消息头中id字段大小
        /// </summary>
        public static int TCP_PROTOBUF_HEADER_ID_SIZE = 2;
        
        ///  <summary>
        /// tcp的protobuf协议的消息头中消息体长度字段大小
        /// </summary>
        public static int TCP_PROTOBUF_HEADER_BODY_LENGTH_SIZE = 4;
        
        /// <summary>
        /// tcp的protobuf协议的消息头大小
        /// 2:消息id, 4:消息体长度
        /// </summary>
        public static int TCP_PROTOBUF_HEADER_SIZE = TCP_PROTOBUF_HEADER_ID_SIZE + TCP_PROTOBUF_HEADER_BODY_LENGTH_SIZE;
    }
}